<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: display/ili9341_hal.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_e4fd3481c5e8112931e161ebbc5af0ff.html">display</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">ili9341_hal.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>ili9341 driver inspired by Adafruit ili9341 code All code in this file has been rewritten by Mike Gore  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="user__config_8h_source.html">user_config.h</a>&quot;</code><br />
<code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stdarg.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &lt;math.h&gt;</code><br />
<code>#include &quot;<a class="el" href="ili9341_8h_source.html">display/ili9341.h</a>&quot;</code><br />
</div>
<p><a href="ili9341__hal_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae9b390c9f820454445688b1d4d76d84d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#ae9b390c9f820454445688b1d4d76d84d">tft_spi_init_slow</a> ()</td></tr>
<tr class="memdesc:ae9b390c9f820454445688b1d4d76d84d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize TFT SPI clock speed and pin for slow speed Only used to read the CHIP ID return: void.  <a href="#ae9b390c9f820454445688b1d4d76d84d">More...</a><br /></td></tr>
<tr class="separator:ae9b390c9f820454445688b1d4d76d84d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abac73802498470361f0016d28706fe49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#abac73802498470361f0016d28706fe49">tft_spi_init_fast</a> ()</td></tr>
<tr class="memdesc:abac73802498470361f0016d28706fe49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize TFT SPI clock speed and pin for normal speed return: void.  <a href="#abac73802498470361f0016d28706fe49">More...</a><br /></td></tr>
<tr class="separator:abac73802498470361f0016d28706fe49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28ac4cdd7bd9de529370205c64b88f8e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#a28ac4cdd7bd9de529370205c64b88f8e">tft_spi_begin</a> ()</td></tr>
<tr class="memdesc:a28ac4cdd7bd9de529370205c64b88f8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain SPI bus for TFT display, assert chip select return: void.  <a href="#a28ac4cdd7bd9de529370205c64b88f8e">More...</a><br /></td></tr>
<tr class="separator:a28ac4cdd7bd9de529370205c64b88f8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f8c3c083a3cd3792dd3d995c1eb2ec5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#a4f8c3c083a3cd3792dd3d995c1eb2ec5">tft_spi_end</a> ()</td></tr>
<tr class="memdesc:a4f8c3c083a3cd3792dd3d995c1eb2ec5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Release SPI bus from TFT display, deassert chip select return: void.  <a href="#a4f8c3c083a3cd3792dd3d995c1eb2ec5">More...</a><br /></td></tr>
<tr class="separator:a4f8c3c083a3cd3792dd3d995c1eb2ec5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aded8e26c838cde7f120917432deac7a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aded8e26c838cde7f120917432deac7a3">tft_reset_init</a> ()</td></tr>
<tr class="memdesc:aded8e26c838cde7f120917432deac7a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize ILI9341 reset GPIO return: void.  <a href="#aded8e26c838cde7f120917432deac7a3">More...</a><br /></td></tr>
<tr class="separator:aded8e26c838cde7f120917432deac7a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaba28fac5eafbd4490439bec5025f30a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aaba28fac5eafbd4490439bec5025f30a">tft_reset_enable</a> ()</td></tr>
<tr class="memdesc:aaba28fac5eafbd4490439bec5025f30a"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable ILI9341 reset return: void  <a href="#aaba28fac5eafbd4490439bec5025f30a">More...</a><br /></td></tr>
<tr class="separator:aaba28fac5eafbd4490439bec5025f30a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc53be43cd64538a6c33e99db99d26ad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#acc53be43cd64538a6c33e99db99d26ad">tft_addr_init</a> ()</td></tr>
<tr class="memdesc:acc53be43cd64538a6c33e99db99d26ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize ILI9341 command/data GPIO return: void.  <a href="#acc53be43cd64538a6c33e99db99d26ad">More...</a><br /></td></tr>
<tr class="separator:acc53be43cd64538a6c33e99db99d26ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9642ac50851a61847cfa7b769741caa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#ad9642ac50851a61847cfa7b769741caa">tft_reset_disable</a> ()</td></tr>
<tr class="memdesc:ad9642ac50851a61847cfa7b769741caa"><td class="mdescLeft">&#160;</td><td class="mdescRight">disnable ILI9341 reset return: void  <a href="#ad9642ac50851a61847cfa7b769741caa">More...</a><br /></td></tr>
<tr class="separator:ad9642ac50851a61847cfa7b769741caa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa975fa5ad6bb7e52356d9d66ac733196"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aa975fa5ad6bb7e52356d9d66ac733196">tft_spi_TX</a> (<a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, int bytes, <a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> command)</td></tr>
<tr class="memdesc:aa975fa5ad6bb7e52356d9d66ac733196"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmit 8 bit data array.  <a href="#aa975fa5ad6bb7e52356d9d66ac733196">More...</a><br /></td></tr>
<tr class="separator:aa975fa5ad6bb7e52356d9d66ac733196"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2eda0e245536550e1a28da1d652629e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#ad2eda0e245536550e1a28da1d652629e">tft_spi_TXRX</a> (<a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, int bytes, <a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> command)</td></tr>
<tr class="memdesc:ad2eda0e245536550e1a28da1d652629e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transmit and read 8 bit data array.  <a href="#ad2eda0e245536550e1a28da1d652629e">More...</a><br /></td></tr>
<tr class="separator:ad2eda0e245536550e1a28da1d652629e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad54db2d053d783c70669fdbd414fda1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aad54db2d053d783c70669fdbd414fda1">tft_spi_RX</a> (<a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *data, int bytes, <a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> command)</td></tr>
<tr class="memdesc:aad54db2d053d783c70669fdbd414fda1"><td class="mdescLeft">&#160;</td><td class="mdescRight">read 8 bit data array  <a href="#aad54db2d053d783c70669fdbd414fda1">More...</a><br /></td></tr>
<tr class="separator:aad54db2d053d783c70669fdbd414fda1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14e5cdfbb744c04570df508551f77add"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="structwindow.html">window</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#a14e5cdfbb744c04570df508551f77add">tft_init</a> (void)</td></tr>
<tr class="memdesc:a14e5cdfbb744c04570df508551f77add"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize TFT.  <a href="#a14e5cdfbb744c04570df508551f77add">More...</a><br /></td></tr>
<tr class="separator:a14e5cdfbb744c04570df508551f77add"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a460d9cc0fd386002d9485f2a0ed585d8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwindow.html">window</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#a460d9cc0fd386002d9485f2a0ed585d8">tftwin</a></td></tr>
<tr class="separator:a460d9cc0fd386002d9485f2a0ed585d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa55d6901951c7fe057e8d32477b5e122"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structwindow.html">window</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aa55d6901951c7fe057e8d32477b5e122">tft</a></td></tr>
<tr class="separator:aa55d6901951c7fe057e8d32477b5e122"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea367e3f9b73fa46e33fde5cc268b148"><td class="memItemLeft" align="right" valign="top"><a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#aea367e3f9b73fa46e33fde5cc268b148">tft_clock</a> = -1</td></tr>
<tr class="memdesc:aea367e3f9b73fa46e33fde5cc268b148"><td class="mdescLeft">&#160;</td><td class="mdescRight">cahce of SPI clock devisor  <a href="#aea367e3f9b73fa46e33fde5cc268b148">More...</a><br /></td></tr>
<tr class="separator:aea367e3f9b73fa46e33fde5cc268b148"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd0704ffdcfd5d17f5437814c2860130"><td class="memItemLeft" align="right" valign="top"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="ili9341__hal_8c.html#afd0704ffdcfd5d17f5437814c2860130">tft_ID</a></td></tr>
<tr class="separator:afd0704ffdcfd5d17f5437814c2860130"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>ili9341 driver inspired by Adafruit ili9341 code All code in this file has been rewritten by Mike Gore </p>
<dl class="section user"><dt>Copyright &copy; 2016 Mike Gore, GPL License</dt><dd></dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="acc53be43cd64538a6c33e99db99d26ad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_addr_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize ILI9341 command/data GPIO return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00112">112</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="a14e5cdfbb744c04570df508551f77add"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="structwindow.html">window</a>* tft_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize TFT. </p>
<dl class="section return"><dt>Returns</dt><dd>diplay ID 9341 </dd></dl>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00178">178</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00971">setup()</a>.</p>

</div>
</div>
<a class="anchor" id="ad9642ac50851a61847cfa7b769741caa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_reset_disable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>disnable ILI9341 reset return: void </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00120">120</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="aaba28fac5eafbd4490439bec5025f30a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_reset_enable </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable ILI9341 reset return: void </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00103">103</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="aded8e26c838cde7f120917432deac7a3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_reset_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize ILI9341 reset GPIO return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00094">94</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="a28ac4cdd7bd9de529370205c64b88f8e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_begin </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtain SPI bus for TFT display, assert chip select return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00080">80</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341_8c_source.html#l00234">tft_bit_blit()</a>, <a class="el" href="ili9341_8c_source.html#l00072">tft_Cmd_Data_TX()</a>, <a class="el" href="ili9341_8c_source.html#l00510">tft_FillPolyLine()</a>, <a class="el" href="ili9341_8c_source.html#l00627">tft_fillRectWH()</a>, <a class="el" href="ili9341_8c_source.html#l01045">tft_invertDisplay()</a>, <a class="el" href="ili9341_8c_source.html#l00952">tft_readPixel()</a>, <a class="el" href="ili9341_8c_source.html#l00837">tft_readRect()</a>, <a class="el" href="ili9341_8c_source.html#l00166">tft_readRegister()</a>, and <a class="el" href="ili9341_8c_source.html#l00745">tft_writeRect()</a>.</p>

</div>
</div>
<a class="anchor" id="a4f8c3c083a3cd3792dd3d995c1eb2ec5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_end </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Release SPI bus from TFT display, deassert chip select return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00087">87</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341_8c_source.html#l00234">tft_bit_blit()</a>, <a class="el" href="ili9341_8c_source.html#l00072">tft_Cmd_Data_TX()</a>, <a class="el" href="ili9341_8c_source.html#l00510">tft_FillPolyLine()</a>, <a class="el" href="ili9341_8c_source.html#l00627">tft_fillRectWH()</a>, <a class="el" href="ili9341_8c_source.html#l01045">tft_invertDisplay()</a>, <a class="el" href="ili9341_8c_source.html#l00952">tft_readPixel()</a>, <a class="el" href="ili9341_8c_source.html#l00837">tft_readRect()</a>, <a class="el" href="ili9341_8c_source.html#l00166">tft_readRegister()</a>, and <a class="el" href="ili9341_8c_source.html#l00745">tft_writeRect()</a>.</p>

</div>
</div>
<a class="anchor" id="abac73802498470361f0016d28706fe49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_init_fast </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize TFT SPI clock speed and pin for normal speed return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00072">72</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="ae9b390c9f820454445688b1d4d76d84d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_init_slow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize TFT SPI clock speed and pin for slow speed Only used to read the CHIP ID return: void. </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00064">64</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="aad54db2d053d783c70669fdbd414fda1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_RX </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
          <td class="paramname"><em>command</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>read 8 bit data array </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*data</td><td>data buffer to send </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bytes</td><td>data buffer size </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">command</td><td>1 = command, 0 = data return: void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00165">165</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341_8c_source.html#l00510">tft_FillPolyLine()</a>, <a class="el" href="ili9341_8c_source.html#l00952">tft_readPixel()</a>, and <a class="el" href="ili9341_8c_source.html#l00837">tft_readRect()</a>.</p>

</div>
</div>
<a class="anchor" id="aa975fa5ad6bb7e52356d9d66ac733196"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_TX </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
          <td class="paramname"><em>command</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transmit 8 bit data array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*data</td><td>data buffer to send </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bytes</td><td>data buffer size </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">command</td><td>1 = command, 0 = data return: void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00134">134</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341_8c_source.html#l00234">tft_bit_blit()</a>, <a class="el" href="ili9341_8c_source.html#l00053">tft_Cmd()</a>, <a class="el" href="ili9341_8c_source.html#l00072">tft_Cmd_Data_TX()</a>, <a class="el" href="ili9341_8c_source.html#l00627">tft_fillRectWH()</a>, and <a class="el" href="ili9341_8c_source.html#l00745">tft_writeRect()</a>.</p>

</div>
</div>
<a class="anchor" id="ad2eda0e245536550e1a28da1d652629e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tft_spi_TXRX </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a> *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="send_8c.html#aba7bc1797add20fe3efdf37ced1182c5">uint8_t</a>&#160;</td>
          <td class="paramname"><em>command</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transmit and read 8 bit data array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*data</td><td>data buffer to send </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">bytes</td><td>data buffer size </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">command</td><td>1 = command, 0 = data return: void </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00149">149</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341_8c_source.html#l00061">tft_Data()</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="aa55d6901951c7fe057e8d32477b5e122"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwindow.html">window</a>* tft</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="ili9341_8c_source.html#l00045">45</a> of file <a class="el" href="ili9341_8c_source.html">ili9341.c</a>.</p>

</div>
</div>
<a class="anchor" id="aea367e3f9b73fa46e33fde5cc268b148"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a> tft_clock = -1</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>cahce of SPI clock devisor </p>
<h1>============================================================= </h1>
<p>Start SPI Hardware Abstraction Layer Keep all hardware dependent SPI code in this section </p>

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00042">42</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="ili9341__hal_8c_source.html#l00080">tft_spi_begin()</a>, <a class="el" href="ili9341__hal_8c_source.html#l00072">tft_spi_init_fast()</a>, and <a class="el" href="ili9341__hal_8c_source.html#l00064">tft_spi_init_slow()</a>.</p>

</div>
</div>
<a class="anchor" id="afd0704ffdcfd5d17f5437814c2860130"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="send_8c.html#a273cf69d639a59973b6019625df33e30">uint16_t</a> tft_ID</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="ili9341__hal_8c_source.html#l00044">44</a> of file <a class="el" href="ili9341__hal_8c_source.html">ili9341_hal.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00783">test_types()</a>, and <a class="el" href="ili9341__hal_8c_source.html#l00178">tft_init()</a>.</p>

</div>
</div>
<a class="anchor" id="a460d9cc0fd386002d9485f2a0ed585d8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structwindow.html">window</a> tftwin</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="ili9341_8c_source.html#l00044">44</a> of file <a class="el" href="ili9341_8c_source.html">ili9341.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
